package Models.Project;

import java.sql.SQLException;
import java.util.ArrayList;

import DBLayer.DBLayer1;
import Models.Site.*;
import Models.Deliverables.*;
import Models.Schedule.*;
import Models.Students.*;
import Models.Advisor.*;
public class Project {
	private int id;
	private String projectName;
	private String projectDescription;
	private String projectCategory;
	private Site site;
	private Advisor advisor;
	private Team team;
	private ArrayList<Deliverables> deliverables;
	private ArrayList<String> comments;
	private DBLayer1 db;
	public Project(){
		db = new DBLayer1();
	}
	public void Post(ArrayList param,ArrayList<String> paramType)
	{
		System.out.print(getProjectName()+getProjectDescription()+getProjectDescription());
		db.postProjects(param,paramType);
		
	}
	public ArrayList<Project> viewproject() throws SQLException
	{
		return db.viewprojects();
	}
	public Project projectDetail(int pid) throws SQLException
	{
		return db.projectDetail(pid);
	}
	public int addComment(ArrayList param,ArrayList<String> paramType){
		return db.addComment(param,paramType);
	}
	public ArrayList<String> getAllComments(int pid) throws SQLException
	{
		return db.getAllComments(pid);
	}
	public Site getSite() {
		return site;
	}
     
	public void setSite(Site site) {
		this.site = site;
	}

	public Advisor getAdvisor() {
		return advisor;
	}

	public void setAdvisor(Advisor advisor) {
		this.advisor = advisor;
	}

	public Team getTeam() {
		return team;
	}

	public void setTeam(Team team) {
		this.team = team;
	}

	public ArrayList<Deliverables> getDeliverables() {
		return deliverables;
	}

	public void setDeliverables(ArrayList<Deliverables> deliverables) {
		this.deliverables = deliverables;
	}


	
	public ArrayList<String> getComments() {
		return comments;
	}

	public void setComments(ArrayList<String> comments) {
		this.comments = comments;
	}

	public String getProjectName() {
		return projectName;
	}
	public int getProjectId() {
		return id;
	}
	
	public String getProjectDescription() {
		return projectDescription;
	}
	public void setProjectDescription(String projectDescription) {
		this.projectDescription = projectDescription;
	}
	public String getProjectCategory() {
		return projectCategory;
	}
	public void setProjectCategory(String projectCategory) {
		this.projectCategory = projectCategory;
	}

	public void setProjectName(String st) {
		this.projectName = st;
	}
	public void setProjectId(int pid){
		id = pid;
	}

}
